package com.snail.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.snail.mapper.SysUserTagMapper;
import com.snail.model.pojo.user.SysUserTag;
import com.snail.service.SysUserTagService;
import org.springframework.stereotype.Service;

/**
 * 用户标签服务实现类
 */
@Service
public class SysUserTagServiceImpl extends ServiceImpl<SysUserTagMapper, SysUserTag> implements SysUserTagService {
    @Override
    public boolean countByUserId(Long userId) {
        Long count = this.lambdaQuery().eq(SysUserTag::getUserId, userId).count();
        if (count > 0) {
            return true;
        }

        return false;
    }
}

